<?php
class ui_panel extends ui_layout
{
	function __construct($title='',$body='')
	{
		$this->init(__FILE__,'div',array('class'=>'panel'));
		$this->areas = array();
		$this->start_prop = 'top';
		$this->end_prop   = 'bottom';
		$this->dimen_prop = 'height';
		$this->area_class = 'ui_layout_vbox_row';
		$this->set_geometry(array(24,'*'));
		$this->title = $this->areas[0];
		$this->title->set('class','panel_title',true);
		$this->title->add($title);
		$this->body  = $this->areas[1];
		$this->body->set('class','panel_body',true);
		$this->body->add($body);
	}
}
?>